package com.xyy.saas.payment.service.impl;

import com.xyy.saas.payment.dao.mapper.MenuPermissionMapper;
import com.xyy.saas.payment.dao.model.MenuPermissionPo;
import com.xyy.saas.payment.service.MenuPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author zhangwenxiong
 * @Date 2020/11/5 11:08
 * @Version 1.0
 */
@Service
public class MenuPermissionServiceImpl implements MenuPermissionService {

    @Autowired
    private MenuPermissionMapper menuPermissionMapper;

    @Override
    public MenuPermissionPo getMenuByAccount(String userAccount) {
        return menuPermissionMapper.getMenuByAccount(userAccount);
    }

    @Override
    public void updateMenu(MenuPermissionPo po) {
        menuPermissionMapper.updateMenu(po);
    }

    @Override
    public void deleteMenu(String userAccount) {
        menuPermissionMapper.deleteMenu(userAccount);
    }

    @Override
    public void addMenu(MenuPermissionPo po) {
        menuPermissionMapper.addMenu(po);
    }
}
